<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- 引入css3动画库 -->
  <link rel="stylesheet" href="./css/animate.css">
  <title>Document</title>
</head>
<script src="../vue.js"></script>

<body>
  <div id="app">
    <button @click="isShow=!isShow">控制显示和隐藏</button>
    <transition enter-active-class="animated bounceInLeft" leave-active-class="animated bounceOutRight">
      <h1 v-if="isShow">过渡文字效果</h1>
    </transition>
  </div>

  <script>
    var vm = new Vue({
      el: "#app",
      data: {
        isShow: true
      }
    })
  </script>
</body>

</html>